package com.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 中标确认表
 */
@Data
@TableName("t_confirm")
public class ConfirmOrderEntity implements Serializable {


    @TableId(value = "pk_bidderId", type = IdType.AUTO)
    private long bidderId;//id
    @TableField("b_biddRef")
    private String biddId;//招标书编号

    @TableField("pk_confirmRef")
    private long confirmRef;//中标确认单编号

    @TableField("b_title")
    private String title;//中标标题



    @TableField("b_supplierRef")
    private long supplierRef;//供应商编号

    @TableField("b_supplierName")
    private String supplierName;//供应商名称

    @TableField("b_productInfo")
    private String info;//投标商品信息

    @TableField("b_price")
    private double price;//招标商品总价

    @TableField("b_bacp")
    private String pact;//合同号

    @TableField("b_confirm")
    private int confirm = 0;//供应商是否确认

    @TableField("b_verifyTime")
    private LocalDateTime verifyTime = LocalDateTime.now();//审核时间

    @TableField(exist = false)
    private List<ConfirmGoodsEntity> confirmGoodsEntityList;//确认订单的所有商品

    @TableField(exist = false)
    private BiddEntity biddEntity;//中标确认表对应的招标书

    @TableField(exist = false)
    private  SupplierEntity supplierEntity ;//中标确认表对应供应商

     @TableField(exist = false)
    private  SupplyOrderEntity supplyOrderEntity ;//中标确认表对应的供货订单

}
